
package com.zuoye.day10;

public class Position {

    public int posId;
    public String posName;
    public Company company;
    public float posMinSalary;
    public float posMaxSalary;
    public String posCity;
    public String posEducation;


    public Position(){}

    public Position(int posId, String posName, Company company, float posMinSalary, float posMaxSalary, String posCity, String posEducation) {
        this.posId = posId;
        this.posName = posName;
        this.company = company;
        this.posMinSalary = posMinSalary;
        this.posMaxSalary = posMaxSalary;
        this.posCity = posCity;
        this.posEducation = posEducation;
    }




    public void show(){
        System.out.println("职位编号:" + this.posId + "  职位名称:" + this.posName + "  所属公司:" + this.company + "  最低薪水:" + this.posMinSalary + "  最高薪水:" + this.posMaxSalary + "  所在城市:" + this.posCity + "  职位编号:" + this.posId + "  学历要求:" + this.posEducation);
    }

    @Override
    public String toString() {
        return "Position{" +
                "posId=" + posId +
                ", posName='" + posName + '\'' +
                ", company=" + company +
                ", posMinSalary=" + posMinSalary +
                ", posMaxSalary=" + posMaxSalary +
                ", posCity='" + posCity + '\'' +
                ", posEducation='" + posEducation + '\'' +
                '}';
    }


}

